leetcode 1480 running sum of 1d array